package com.ruoyi.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.domain.SysOss;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

/**
 * @author 吴倩芸
 * @create 2022/6/13
 **/
public interface SysOssMapper extends BaseMapper<SysOss> {

    /**
     * 根据传入id查询对象存储服务
     * @param ossId
     * @return
     */
    SysOss queryByOssId(String ossId);

    List<SysOss> queryByOssIds(@Param("ossIds") Collection<String> ossIds);

    Boolean deleteById(String ossId);

    Boolean save(SysOss sysOss);

}
